import {createRouter,createWebHashHistory} from 'vue-router'
import HomeScreen from '@/views/screen/home.vue'
import QualityInspectionScreen from '@/views/screen/qualityInspection.vue'
import WarehouseLogisticsScreen from '@/views/screen/warehouseLogistics.vue'
import Screen1 from '@/views/screen/screen1.vue'
import Screen2 from '@/views/screen/screen2.vue'
import Screen3 from '@/views/screen/screen3.vue'
import Screen4 from '@/views/screen/screen4.vue'
import Screen5 from '@/views/screen/screen5.vue'
import Screen6 from '@/views/screen/screen6.vue'
import Screen7 from '@/views/screen/screen7.vue'
import NewScreen1 from '@/views/newScreen1/index.vue'
import NewScreen2 from '@/views/newScreen2/index.vue'
import NewScreen3 from '@/views/newScreen3/index.vue'
import NewScreen4 from '@/views/newScreen4/index.vue'
import Test from '@/views/screen/test.vue'
import NotFound from '@/views/404.vue'

const routes = [
  { name:'home', path: '/', component: HomeScreen, alias: '/home' },
	{ name:'qualityInspection', path: '/qualityInspection', component: QualityInspectionScreen },
	{ name:'warehouseLogistics', path: '/warehouseLogistics', component: WarehouseLogisticsScreen },
	{ name:'screen1', path: '/screen1', component: Screen1 },
	{ name:'screen2', path: '/screen2', component: Screen2 },
	{ name:'screen3', path: '/screen3', component: Screen3 },
	{ name:'screen4', path: '/screen4', component: Screen4 },
	{ name:'screen5', path: '/screen5', component: Screen5 },
	{ name:'screen6', path: '/screen6', component: Screen6 },
	{ name:'screen7', path: '/screen7', component: Screen7 },
	{ name:'newScreen1', path: '/newscreen1', component: NewScreen1 },
	{ name:'newScreen2', path: '/newscreen2', component: NewScreen2 },
	{ name:'newScreen3', path: '/newscreen3', component: NewScreen3 },
	{ name:'newScreen4', path: '/newscreen4', component: NewScreen4 },
	{ name:'test', path: '/test', component: Test },
  { name:'pageError', path: '/pageError', component: NotFound },
	{ path: '/:pathMatch(.*)*', redirect: '/pageError' }
]

const router = createRouter({
	history:createWebHashHistory(),
	routes
})

export default router